<div class="jumbotron">
    <h1>
        用户登录
    </h1>
</div>
<!--col-md-offset-4 col-lg-offset-4 col-xl-offset-4使注册界面居中这么多其实是各种屏幕大小下的自适应-->
<div class="row clearfix col-md-offset-4">
    <div class="col-md-12 column">
        <form class="form-horizontal" role="form" action="login" method="post">
            <div class="form-group">
                <label for="inputUserName" class="col-sm-2 control-label">用户名</label>
                <div class="col-sm-2">
                    <input type="text" class="form-control" id="inputUserName" name="username" value="{$oldUsername}"/>
                </div>
                {if session('loginErrors.username')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.loginErrors.username}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-2">
                    <input type="password" class="form-control" id="inputPassword" name="password" value="{$oldPassword}"/>
                </div>
                {if session('loginErrors.password')}
                <div class="col-sm-3">
                    <p class="form-control-static text-danger">{$Think.session.loginErrors.password}</p>
                </div>
                {/if}
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-2">
                    <button type="submit" class="btn btn-primary btn-block">确认登录</button>
                </div>
            </div>
        </form>
    </div>
</div>
